﻿using System.Configuration;

namespace Borg.Config
{
    public class ConfigurationSection : System.Configuration.ConfigurationSection
    {
        [ConfigurationProperty("application")]
        public ApplicationElement Application
        {
            get { return (ApplicationElement)this["application"]; }
            set { this["application"] = value; }
        }

        [ConfigurationProperty("runtime")]
        public RuntimeElement Runtime
        {
            get { return (RuntimeElement)this["runtime"]; }
            set { this["runtime"] = value; }
        }

        [ConfigurationProperty("createAppDomain")]
        public CreateAppDomainElement CreateAppDomain
        {
            get { return (CreateAppDomainElement)this["createAppDomain"]; }
            set { this["createAppDomain"] = value; }
        }

        [ConfigurationProperty("startupPath")]
        public PathElementCollection StartupPath
        {
            get { return (PathElementCollection)this["startupPath"]; }
            set { this["startupPath"] = value; }
        }

        [ConfigurationProperty("loaderPath")]
        public LoaderPathCollection LoaderPath
        {
            get { return (LoaderPathCollection)this["loaderPath"]; }
            set { this["loaderPath"] = value; }
        }

        [ConfigurationProperty("arguments")]
        public KeyValueConfigurationCollection Arguments
        {
            get { return (KeyValueConfigurationCollection)this["arguments"]; }
            set { this["arguments"] = value; }
        }
    }
}
